package trlygjj.tanruiliyigenjinjin.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 退款记录
 */
@Getter
@Setter
@ToString
public class Refund {
    /**
     * 审核中
     */
    public static final int  STATE_UNDER = 0;
    /**
     * 审核通过
     */
    public static final int  STATE_PUSS = 1;

    private Long id;
    /**
     * 流失学员
     */
    private LeaveStudent leavestudent;
    /**
     * 名字
     */
    private  String refundName;
    /**
     * 退款日期
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd" ,timezone="GMT+8")
    private Date refunddate;
    /**
     * 退款人
     */
    private Employee refunduser;
    /**
     * 录入人
     */
    private Employee inputuser;
    /**
     * 审核人
     */
    private Employee auditor;
    /**
     * 单据
     */
    private String invoices;
    /**
     * 退款状态
     */
    private Integer refundamountstate = STATE_UNDER;

    //支付方式
    private DataDictionaryItem payment;

    /**
     * 班级
     */
    private Grade grade;


}